﻿// --------------------------------------------------------------------------------------
// <copyright file="trang_chuController.cs" company="NGroup">
// Copyright (c) NGroup. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------
// <history>
//     <change who="Bui Thanh Nam" date="2013.12.06">Create</change>
// </history>
// --------------------------------------------------------------------------------------

namespace NGroup.VTL.Web.Controllers
{
    using System.Web.Mvc;
    using NGroup.VTL.Service;
    using NGroup.VTL.Service.Abstraction;

    public class trang_chuController : ContentBaseController
    {
        #region Constructor

        private IRetrieveContentService _retrieveContentService;

        public trang_chuController()
        {
            _retrieveContentService = new RetrieveContentService();
        }

        #endregion

        public ActionResult danh_sach()
        {
            var data = _retrieveContentService.GetHomePageProductList(CurrentLanguage);

            ViewBag.Products = data;
            ViewBag.MetaDescription = NGroup.VTL.Resources.Lang.master_defaultmetadescriptions;
            ViewBag.MetaKeyword = NGroup.VTL.Resources.Lang.master_defaultmetakeywords;

            return View();
        }
    }
}
